package com.lottery.dao.qiuqiu.wealthDao;

import com.lottery.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * 帐户表Dao;
 */
public interface AccountDao {

	/**
	 * 添加
	 */
	void insertAccount(Account account);

	/**
	 * 根据用户user_id查询
	 */
	Account selectAccountByUserId(@Param(value = "userId") int userId);

	int addAccount(Account account1);

	/**
	 * reduce金额
	 */
	int reduceAccount(Account account);

	/**
	 * 根据主键ID查询
	 */
	Account selectAccountById(@Param(value = "id") int id);

	/**
	 * 修改金额
	 */
	int addAccountById(Account account);

	/**
	 * 修改金额
	 */
	int updateAccountById(Account account);

    int updateAccountMoneyById(Account account1);
}
